package com.cskaoyan.mapper;

import com.cskaoyan.bean.po.MarketKeyword;
import com.cskaoyan.bean.po.MarketKeywordExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface MarketKeywordMapper {
    long countByExample(MarketKeywordExample example);

    int deleteByExample(MarketKeywordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketKeyword record);

    int insertSelective(MarketKeyword record);

    List<MarketKeyword> selectByExample(MarketKeywordExample example);

    MarketKeyword selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketKeyword record, @Param("example") MarketKeywordExample example);

    int updateByExample(@Param("record") MarketKeyword record, @Param("example") MarketKeywordExample example);

    int updateByPrimaryKeySelective(MarketKeyword record);

    int updateByPrimaryKey(MarketKeyword record);

    String selectKeywordByKeyword(String keyword);

    Integer selectSortOrderMax();

    int updateDefault(@Param("d") Integer d, @Param("date") Date date);

    int updateDefaultZero();

    Integer selectSortOrderByKeyword(String keyword);

    void updateSortOrder(@Param("i") int i, @Param("keyword") String keyword);

    Integer selectDeletedByKeyword(String keyword);


    void updateByKeyword(String keyword);

    Integer selectIdByKeyword(String keyword);

    int updateDeletedByPrimaryKey(Integer id);

    int updateHotValue();
}